#include "videodisplay.h"
#include "ui_videodisplay.h"

videodisplay::videodisplay(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::videodisplay)
{
    ui->setupUi(this);
    videoSocket = new QTcpSocket; //创建套接字

    QString ip="192.168.24.59";
    QString port="9999";

    //主动连接服务器
    videoSocket->connectToHost(ip, port.toUShort());

    connect(videoSocket, SIGNAL(readyRead()), this, SLOT(recv_data()));
}

videodisplay::~videodisplay()
{
    delete ui;
}

void videodisplay::recv_data()
{


  return;
}

void videodisplay::mouseDoubleClickEvent(QMouseEvent *event)
{
    m = new mainface;
    this->hide();
    m->show();

}
